<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>锚点示例</title> 
</head> 
<body> 
<a name="A0" id="A0"></a> 
<span onclick="location.href='#A1'; ">网页第一部分</span> 
<a href="#A2">网页第二部分</a> 
<div style="height:900px; background:#CCCCCC"></div> 
<a name="A1" id="A12"></a>第一部分<a href="#A0">返回顶部</a> 
<div style="height:900px; background:#999999"></div> 
<a name="2" id="A2"></a>第二部分<a href="#A0">返回顶部</a> 
<div style="height:900px; background:#666666"></div> 
</body> 
</html>